package com.demo0211;

/**
 * Created by cc
 * Description:
 * User: CZH
 * Date: 2023-02-11
 * Time: 20:15
 */
//输入：l1 = [1,2,4], l2 = [1,3,4]
//输出：[1,1,2,3,4,4]
public class ListNodeTest {
    public static void main(String[] args) {
        ListNode listNode = new ListNode();
        listNode.val = 1;
        listNode.next.val = 2;
        listNode.next.next.val = 4;
        ListNode listNode1 = new ListNode();
        listNode1.val = 1;
        listNode1.next.val = 3;
        listNode1.next.next.val = 4;
        Solution solution = new Solution();
        ListNode listNode2 = solution.mergeTwoLists(listNode, listNode1);

    }
}
